﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MouseAndCat.Model
{
    public partial class TransparentForm : Form
    {
        public TransparentForm()
        {
            FormBorderStyle = FormBorderStyle.None;
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            SetStyle(ControlStyles.UserPaint, true);
            InitializeComponent();
            TransparencyKey = Color.Red;
            BackColor = Color.Red;
        }

        private void TransparentForm_Load(object sender, EventArgs e)
        {

        }

        private void TransparentForm_MouseEnter(object sender, EventArgs e)
        {
            Cursor.Hide();
        }

        private void TransparentForm_MouseLeave(object sender, EventArgs e)
        {
            Cursor.Show();
        }
    }
}
